
function getCategoryListDemo () {
    return '<div class=""><div class="row">\
        <div class="col-md-12 col-sm-12 col-xs-12">\
        <div class="x_panel">\
        <div class="x_title">\
        <h2>分类列表</h2>\
        <ul class="nav navbar-right panel_toolbox">\
        <li><a href="category.html?operation=create" class="close-link">\
        新建分类</i></a></li></ul>\
        <div class="clearfix"></div></div>\
        <div class="x_content">\
        <table id="datatable" class="table-text-center table table-striped table-bordered">\
        <thead><tr><th>分类ID</th><th>分类名称</th><th>操作</th>\
        </tr></thead><tbody id="categorylist"></tbody></table>\
        </div></div></div></div></div>'
}


function getCategoryCreateDemo () {
    return '<div><div class="row"><div class="col-md-12 col-sm-12 col-xs-12">\
        <div class="x_panel"><div class="x_title"><h2>新建分类</h2>\
        <ul class="nav navbar-right panel_toolbox"><li>\
        <a href="javascript:history.go(-1);"><i class="fa fa-reply">\
        </i></a></li></ul><div class="clearfix"></div></div>\
        <br><form class="form-horizontal form-label-left" onsubmit="return false" \
        id="create_category_form" enctype="multipart/form-data">\
        <div class="form-group">\
        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
        分类名称<span class="required">*</span></label>\
        <div class="col-md-6 col-sm-6 col-xs-12">\
        <input type="text" id="category_name" name="name" required="required"\
         class="form-control col-md-7 col-xs-12" data-parsley-id="5">\
         <ul class="parsley-errors-list"><li>This value is required.</li></ul>\
        </div></div><div class="form-group">\
        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
        分类描述<span class="required">*</span></label>\
        <div class="col-md-6 col-sm-6 col-xs-12">\
        <textarea required="required" class="form-control col-md-7 col-xs-12" id="category_desc" name="desc" data-parsley-minlength="10" data-parsley-maxlength="400"  data-parsley-validation-threshold="10" style="height: 131px;">\
        </textarea><ul class="parsley-errors-list">\
        <li>This Message (10 chars min, 100 max).</li></ul></div></div>\
        <div class="form-group"><label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
        分类展示图片<span class="required">*</span></label>\
        <div class="col-md-6 col-sm-6 col-xs-12">\
        <input type="file" data-role="magic-overlay" data-target="#pictureBtn" data-edit="insertImage" id="category_img" name="cover_img">\
        </div></div><div class="ln_solid"></div><div class="form-group">\
        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">\
        <a href="javascript:history.go(-1);">\
        <button class="btn btn-primary" type="button">取消</button></a>\
        <button class="btn btn-primary" type="reset">重置</button>\
        <button type="submit" class="btn btn-success" id="create_category">\
        提交</button></div></div></form></div></div></div></div>'
}


function getCategoryUpdateDemo () {
    return '<div><div class="row"><div class="col-md-12 col-sm-12 col-xs-12">\
        <div class="x_panel"><div class="x_title"><h2>修改分类</h2>\
        <ul class="nav navbar-right panel_toolbox"><li>\
        <a href="javascript:history.go(-1);"><i class="fa fa-reply">\
        </i></a></li></ul><div class="clearfix"></div></div>\
        <br><form class="form-horizontal form-label-left" onsubmit="return false" \
        id="create_category_form" enctype="multipart/form-data">\
        <div class="form-group">\
        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
        分类名称<span class="required">*</span></label>\
        <div class="col-md-6 col-sm-6 col-xs-12">\
        <input type="text" id="category_name" name="name" required="required"\
         class="form-control col-md-7 col-xs-12" data-parsley-id="5">\
         <ul class="parsley-errors-list"><li>This value is required.</li></ul>\
        </div></div><div class="form-group">\
        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
        分类描述<span class="required">*</span></label>\
        <div class="col-md-6 col-sm-6 col-xs-12">\
        <textarea required="required" class="form-control col-md-7 col-xs-12" id="category_desc" name="desc" data-parsley-minlength="10" data-parsley-maxlength="400"  data-parsley-validation-threshold="10" style="height: 131px;">\
        </textarea><ul class="parsley-errors-list">\
        <li>This Message (10 chars min, 100 max).</li></ul></div></div>\
        <div class="form-group">\
        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
        原图</label><div class="col-md-6 col-sm-6 col-xs-12">\
        <img id="category_img" style="height: 131px;">\
        </div></div><div class="form-group">\
        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
        分类展示图片<span class="required">*</span></label>\
        <div class="col-md-6 col-sm-6 col-xs-12">\
        <input type="file" data-role="magic-overlay" data-target="#pictureBtn" data-edit="insertImage" id="category_img" name="cover_img">\
        </div></div><div class="ln_solid"></div><div class="form-group">\
        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">\
        <a href="javascript:history.go(-1);">\
        <button class="btn btn-primary" type="button">取消</button></a>\
        <button class="btn btn-primary" type="reset">重置</button>\
        <button type="submit" class="btn btn-success" id="create_category">\
        提交</button></div></div></form></div></div></div></div>'
}

function getEditionListDemo () {
    return '<div class=""><div class="row">\
        <div class="col-md-12 col-sm-12 col-xs-12">\
        <div class="x_panel">\
        <div class="x_title">\
        <div class="col-sm-6">\
        <h2>经书列表</h2>\
        </div>\
        <div class="col-sm-6">\
        <ul class="nav navbar-right panel_toolbox">\
        <li><a href="edition.html?operation=create" class="close-link">\
        新建经书</i></a></li></ul>\
        </div>\
        <div class="clearfix"></div></div>\
        <div class="x_content">\
        <table id="datatable" class="table-text-center table table-striped table-bordered">\
        <thead><tr><th>ID</th><th>经书分类</th><th>经书名称</th>\
        <th>经书页数</th><th>珍藏价(元)</th><th>封面</th><th>操作</th>\
        </tr></thead><tbody id="editionlist"></tbody></table>\
        </div></div></div></div></div>'
}



function getEditionCreateDemo () {
    return '<div><div class="row"><div class="col-md-12 col-sm-12 col-xs-12">\
        <div class="x_panel"><div class="x_title"><h2>新建分类</h2>\
        <ul class="nav navbar-right panel_toolbox"><li>\
        <a href="javascript:history.go(-1);"><i class="fa fa-reply">\
        </i></a></li></ul><div class="clearfix"></div></div>\
        <br><form class="form-horizontal form-label-left" onsubmit="return false" \
        id="create_edition_form" enctype="multipart/form-data">\
        <div class="form-group">\
        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
         经书名称<span class="required">*</span></label>\
        <div class="col-md-6 col-sm-6 col-xs-12">\
        <input type="text" id="edition_name" name="name" required="required"\
         class="form-control col-md-7 col-xs-12" data-parsley-id="5">\
         <ul class="parsley-errors-list"><li>This value is required.</li></ul>\
        </div></div>\
        <div class="form-group"><label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
        经书文字<span class="required">*</span></label>\
        <div class="col-md-2 col-sm-6 col-xs-12">\
        <input type="file" data-role="magic-overlay" data-target="#pictureBtn" data-edit="insertImage" id="char_txt" name="char_txt">\
        只支持txt文件</div><div class="col-md-3 col-sm-6 col-xs-12">\
        <a id="char_url"></a></div></div>\
        <div class="form-group">\
        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
         经书分类<span class="required">*</span></label>\
        <div class="col-md-6 col-sm-6 col-xs-12">\
        <select id="sutras_category" name="sutras_category" class="form-control input-sm">\
        </select>\
         <ul class="parsley-errors-list"><li>This value is required.</li></ul>\
        </div></div>\
         <div class="form-group">\
        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
         经书页数<span class="required">*</span></label>\
        <div class="col-md-2 col-sm-6 col-xs-12">\
        <input type="text" id="edition_page_num" name="name" required="required"\
         class="form-control col-md-7 col-xs-12" data-parsley-id="5">\
         <ul class="parsley-errors-list"><li>This value is required.</li></ul>\
        </div><label class="control-label" for="first-name">页</label>\
         </div>\
        <div class="form-group">\
        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
         珍藏版价格<span class="required">*</span></label>\
        <div class="col-md-2 col-sm-6 col-xs-12">\
        <input type="text" id="edition_price" name="name" required="required"\
         class="form-control col-md-7 col-xs-12" data-parsley-id="5">\
         <ul class="parsley-errors-list"><li>This value is required.</li></ul>\
        </div><label class="control-label" for="first-name">元</label>\
        </div>\
        <div class="form-group"><label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
        经书封面<span class="required">*</span></label>\
        <div class="col-md-2 col-sm-6 col-xs-12">\
        <input type="file" data-role="magic-overlay" data-target="#pictureBtn" data-edit="insertImage" id="edition_img" name="edition_img">\
        </div><div class="col-md-3 col-sm-6 col-xs-12">\
        <a id="edition_img_url">sss</a></div></div>\
        <div class="form-group">\
        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">\
        经书详情介绍<span class="required">*</span></label>\
        <div class="col-md-6 col-sm-6 col-xs-12">\
        <textarea required="required" class="form-control col-md-7 col-xs-12" id="edition_desc" name="desc" data-parsley-minlength="10" data-parsley-maxlength="400"  data-parsley-validation-threshold="10" style="height: 131px;">\
        </textarea><ul class="parsley-errors-list">\
        <li>This Message (10 chars min, 100 max).</li></ul></div></div>\
        <div class="ln_solid"></div><div class="form-group">\
        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">\
        <a href="javascript:history.go(-1);">\
        <button class="btn btn-primary" type="button">取消</button></a>\
        <button class="btn btn-primary" type="reset">重置</button>\
        <button type="submit" class="btn btn-success" id="create_edition">\
        提交</button></div></div></form></div></div></div></div>'
}
